#pragma once
#include "GameObject.h"
#include "CONSTANTS.h"

class World;
// oh god, CYCLIC DEPENDANCIES
class Player: public GameObject
{
public:
	//default constructors
	Player(LPDIRECT3DDEVICE9 device, World *WorldPointer);
	~Player(void);
	// player functions
	void Movement(int facing);
	void Physics();
	void Jump();
	bool IfWorldCollide();
	bool IfObjectCollide();
	void IfWarpCollide();
	void Interact();
private:
	int state;
	int WorldBBoxCount_;
	World *WorldPointer_;
	float ySpeed;
	int currentFacing;
	/*This is an integer, from 0 to 7, where each means a direction.
		
	   1 0 7
		\|/
	   2-*-6
		/|\
	   3 4 5*/

};

